﻿import QtQuick 2.9
import QtQuick.Window 2.2
import Capture 1.0
import QtQuick.Controls 2.0

import MyWidget 1.0

Window {
    id:root
    visible: true
    width: 640
    height: 480
    title: qsTr("Hello World")

    Button {
        id:m_button

//        background: "blue"
        onClicked: {
            m_capture.capturePic();

        }


        ColorAnimation {
            from: "white"
            to: "blue"
            duration: 1000
        }
    }


    Capture {
        id:m_capture
    }

    MyWidget {
        id:m_widget
        x:50
        y:50
        width: 50
        height: 50
    }

    Component.onCompleted: {
        m_widget.setView(m_widget);
    }

}
